package io.shallwe.common.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * 扫描记录
 * @author : 王小伟
 * @date : 2019-07-24 10:31:08
 */
public abstract class BaseScannerRecord<M extends BaseScannerRecord<M>> extends Model<M> implements IBean {

	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	public java.lang.Integer getId() {
		return getInt("id");
	}

	public M setScannerId(java.lang.Integer scannerId) {
		set("scanner_id", scannerId);
		return (M)this;
	}
	
	public java.lang.Integer getScannerId() {
		return getInt("scanner_id");
	}

	public M setScannerType(java.lang.Integer scannerType) {
		set("scanner_type", scannerType);
		return (M)this;
	}
	
	public java.lang.Integer getScannerType() {
		return getInt("scanner_type");
	}

	public M setHangerNo(java.lang.String hangerNo) {
		set("hanger_no", hangerNo);
		return (M)this;
	}
	
	public java.lang.String getHangerNo() {
		return getStr("hanger_no");
	}

	public M setRawText(java.lang.String rawText) {
		set("raw_text", rawText);
		return (M)this;
	}
	
	public java.lang.String getRawText() {
		return getStr("raw_text");
	}

	public M setUpdateTime(java.util.Date updateTime) {
		set("update_time", updateTime);
		return (M)this;
	}
	
	public java.util.Date getUpdateTime() {
		return get("update_time");
	}



	public M setCreateTime(java.util.Date createTime) {
		set("create_time", createTime);
		return (M)this;
	}

	public java.util.Date getCreateTime() {
		return get("create_time");
	}


	/***
	 * 处理状态
	 * @param statusFlag
	 * @return
	 */
	public M setStatusFlag(java.lang.Integer statusFlag) {
		set("status_flag", statusFlag);
		return (M)this;
	}

	/***
	 * 处理状态
	 * @return
	 */
	public java.lang.Integer getStatusFlag() {
		return getInt("status_flag");
	}

	/***
	 * 手动模拟 系统自动扫描标记
	 * @param manualFlag
	 * @return
	 */
	public M setManualFlag(java.lang.Integer manualFlag) {
		set("manual_flag", manualFlag);
		return (M)this;
	}

	/***
	 * 手动模拟 系统自动扫描标记
	 * @return
	 */
	public java.lang.Integer getManualFlag() {
		return getInt("manual_flag");
	}
}